﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace Excell_On_Services.ViewModels
{
    public class ServiceModel
    {
        [HiddenInput(DisplayValue = false)]
        public int? ServiceID { get; set; }

        [Required(ErrorMessage = "Service name is required")]
        public string Name { get; set; }
        
        //[Required(ErrorMessage = "Parent Service is required")]
        public int? ParentID { get; set; }
        
        [Required(ErrorMessage = "Price is required")]
        [DataType(DataType.Currency)]
        public decimal Price{ get; set; }

        [DataType(DataType.MultilineText)]
        public string Description { get; set; }
    }
}